<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no" />
	<meta content="yes" name="apple-mobile-web-app-capable" />
	<meta content="black" name="apple-mobile-web-app-status-bar-style">
	<meta content="telephone=no" name="format-detection" />
	<meta content="emai=no" name="format-detection" />
	<link rel="stylesheet" type="text/css" href="/css/common.css" />
	<title>我的推广明细</title>
	<style>
		body {
			font-size: 1.6rem;
			line-height: 1.5;
			padding: 0 8%;
		}

		.count, .detail {
			margin-top: 20px;
		}

			.count li {
				float: left;
				width: 50%;
			}

				.count li span {
					color: #ef8905;
					font-size: 2rem;
				}

		.detail {
			width: 100%;
		}

			.detail thead {
				font-size: 1.8rem;
				font-weight: bold;
			}

			.detail tr {
				border-bottom:1px solid rgba(239,137,5,0.3);
				height: 35px;
			}
			.detail td {
				width: 50%;
			}
	</style>
	<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script>
		var _hmt = _hmt || [];
		(function() {
			var hm = document.createElement("script");
			hm.src = "https://hm.baidu.com/hm.js?19f39b206aedf768b42fbc69e4e4f721";
			var s = document.getElementsByTagName("script")[0];
			s.parentNode.insertBefore(hm, s);
		})();
	</script>
</head>
<body>
	<div class="wrapper">
		<ul class="count clear">
			<li>扫码数：<span><?php echo $ScanqrcsT ?></span></li>
			<li>新会员数：<span><?php echo $ScanqrcwT ?></span></li>
		</ul>
		<table class="detail">
			<thead>
				<tr>
					<td>头像</td>
					<td>微信昵称</td>
					<td>加入时间</td>
				</tr>
			</thead>
			<?php foreach ($ScanqrcList as $item):?>
				<tr>
					<td><img height="40" width="40" src=<?php echo $item['headimgurl']?>></td>
					<td><?php echo $item['nickname']?></td>
					<td><?php echo date("Y-m-d h:i:s", $item['create_time'])?></td>
				</tr>
			<?php endforeach;?>

		</table>
	</div>
	<script type="text/javascript">
		Zepto(function ($) {
			wx.config({
				debug: false,
				appId: '<?php echo $jsapi['js_config']['appId']?>',
				timestamp: <?php echo $jsapi['js_config']['timestamp']?>,
				nonceStr: '<?php echo $jsapi['js_config']['noncestr']?>',
				signature: '<?php echo $jsapi['js_config']['signature']?>',
				jsApiList: [
					'onMenuShareTimeline',
					'onMenuShareAppMessage'
				]
			});
			wx.ready(function () {
				wx.onMenuShareTimeline({
					title: '<?php echo $jsapi['share_title'];?>',
					link: '<?php echo $jsapi['share_url']?>', // 分享链接
					imgUrl: 'http://wx.zhishimama.com/img/salon_offline.png', // 分享图标
					success: function () {
						// 用户确认分享后执行的回调函数
					},
					cancel: function () {
						// 用户取消分享后执行的回调函数
					}
				});

				wx.onMenuShareAppMessage({
					title: '<?php echo $jsapi['share_title']?>',
					desc: '<?php echo $jsapi['share_content'];?>', // 分享描述
					link: '<?php echo $jsapi['share_url']?>', // 分享链接
					imgUrl: 'http://wx.zhishimama.com/img/salon_offline.png', // 分享图标
					type: 'link', // 分享类型,music、video或link，不填默认为link
					dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
					success: function () {
						// 用户确认分享后执行的回调函数
					},
					cancel: function () {
						// 用户取消分享后执行的回调函数
					}
				});
			});
		})
	</script>
</body>
</html>
